package com.xmb.wcapi.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xmb.wcapi.entity.BaseInventory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author huangping
 * @since 2024-06-14
 */
public interface BaseInventoryMapper extends BaseMapper<BaseInventory> {

    /**
     * 获取料号的库存
     * @return
     */
    @DS("db2")
    List<BaseInventory> getMaterialInventory(@Param("cusCode") String cusCode, @Param("materials") List<String> materials,@Param("isPosition") String isPosition);

}
